package com.qingcheng.service.impl;

import com.qingcheng.service.business.AdService;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @ProjectName: qingcheng_parent
 * @ClassName: Init
 * @Time: 2019/7/9
 * @Author: zhou24
 * @Description:
 * @Experience:
 */
@Component
public class Init implements InitializingBean {
    @Autowired
    private AdService adService;

    @Override
    public void afterPropertiesSet() throws Exception {
        adService.saveAllAdToRedis();
    }
}
